package bairui.international.console.web.controller.personnel.employee;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_Admin;


/**
 *
 * 复位密码
 *
 * @generated
 * 
 * @see Test_C_Personnel_Employee_InitPassword_Get 测试
 *
 */
@Controller
public class C_Personnel_Employee_InitPassword_Get
 extends SC_Personnel_Employee_InitPassword_Get 
{

	@Autowired @Lazy private Service_Admin service_Admin;
	
	/**
	 * Get请求
	 */
	@Action(Get.class)
	@GetMapping(Get.RequestMappingValue)
	public @FomatOutput @ResponseBody Object get(
		ModelMap map, HttpServletRequest request, 
		@PathVariable(name=Get.PathVariableName.EmployeeId) long employeeId
	) throws Exception {
		service_Admin.initPassword(employeeId);
		//
		return null;
	}
	

}


